package com.wyj.mapper;

import com.wyj.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {

    User selectById (int id);

    User selectByName (String username);

    User selectByEmail (String email);

    int insertUser (User user);

    int updateStatus (int id,int status);

    int updateHeaderUrl (@Param("id") int id,@Param("headerUrl") String headerUrl);

    int updatePassword (int id,String password);



}
